package sp.pojo;

import java.util.Date;

/**
 * 
 * 用户    
 * @description: 
 * @author 浮~沉
 * @date 2020年4月29日
 */
public class User extends BasePojo{
	
	private String typeCode;		//用户名
	private String password;
	//@NotEmpty(message = "姓名不能为空")
	//@Length(min = 2, max = 10 , message = "姓名长度必须是2-10之间")
	private String name;			//姓名
	private String email;
	private Integer isStart;		//是否启用
	private Integer roleId;			//角色
	private String salt;			//随机盐
	private Date lastLoginDate;
	
	//@Pattern(regexp = "/^[1-9][0-9]{4,10}/gi", message = "QQ号码格式不正确")
	private String qq;
	
	private String wechat;
	//@Pattern(regexp = " /^(0|86|17951)?(13[0-9]|15[012356789]|18[0-9]|14[57]|17[678])[0-9]{8}$/", message ="手机号码格式不正确")
	private String phone;
	/*---------  关联表信息    ----------*/
	private String roleName;		//角色名

	public User() {}
	
	public String getTypeCode() {
		return typeCode;
	}


	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}


	public String getPassword() {
		return password;
	}


	public void setPassword(String password) {
		this.password = password;
	}


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	

	public Integer getIsStart() {
		return isStart;
	}


	public void setIsStart(Integer isStart) {
		this.isStart = isStart;
	}


	public Integer getRoleId() {
		return roleId;
	}


	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}


	public String getSalt() {
		return this.salt;
	}


	public void setSalt(String salt) {
		this.salt = salt;
	}
	
	public String getRoleName() {
		return roleName;
	}
	
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Date getLastLoginDate() {
		return lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWechat() {
		return wechat;
	}

	public void setWechat(String wechat) {
		this.wechat = wechat;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	
}
